home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4528 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  31 lines

  1. Newsgroups: comp.lang.c
  2. Path: phcoms4.seri.philips.nl!aonl01!sspl01!nygeerts
  3. From: nygeerts@sspl01.seri.philips.nl (Arjan Geertsema)
  4. Subject: StandardIn
  5. Sender: news@nyhp02.serigate.philips.nl (NEWS)
  6. Message-ID: <DMB5AC.2tD@nyhp02.serigate.philips.nl>
  7. Date: Mon, 5 Feb 1996 14:51:48 GMT
  8. Organization: Philips Semiconductors, Nijmegen
  9. X-Newsreader: Tin 1.1 PL4
  10.  
  11. Is there a simple way to change a program wich uses an normal input file to use
  12. stdin for his input.
  13. Now I'm using: 
  14.  
  15.     FILE    *fopen () ;
  16.         infile= fopen (filename, "rb") ; 
  17.  
  18. I want to use both input methods next to eachother. Just like the UNIX lp 
  19. command.
  20.  
  21. Thanks in advance,
  22.  
  23. Arjan
  24.  
  25. --
  26. *****************************************************************************
  27. *   Arjan H. Geertsma      \|/                                              *
  28. *   Philips C&M Nijmegen  (o o)     phone : (+31-24-353)3083                *
  29. *   FB3.091           _oO0_( )_0Oo_ e-mail: a.geertsma@nym.sc.philips.com   * 
  30. *****************************************************************************
  31.